<html>
  <head>
    <meta name="viewport" content="width=device-width, initial-scale=1" charset="UTF-8">
    <title>com.drake.channel</title>
<link href="../../../../images/logo-icon.svg" rel="icon" type="image/svg"><script>var pathToRoot = "../../";</script><script type="text/javascript" src="../../scripts/sourceset_dependencies.js" async="async"></script><link href="../../styles/style.css" rel="Stylesheet"><link href="../../styles/logo-styles.css" rel="Stylesheet"><link href="../../styles/jetbrains-mono.css" rel="Stylesheet"><link href="../../styles/main.css" rel="Stylesheet"><script type="text/javascript" src="../../scripts/clipboard.js" async="async"></script><script type="text/javascript" src="../../scripts/navigation-loader.js" async="async"></script><script type="text/javascript" src="../../scripts/platform-content-handler.js" async="async"></script><script type="text/javascript" src="../../scripts/main.js" async="async"></script>  </head>
  <body>
    <div id="container">
      <div id="leftColumn"><a href="../../index.html">
          <div id="logo"></div>
        </a>
        <div id="paneSearch"></div>
        <div id="sideMenu"></div>
      </div>
      <div id="main">
        <div id="leftToggler"><span class="icon-toggler"></span></div>
<script type="text/javascript" src="../../scripts/main.js"></script>        <div class="main-content" id="content" pageIds="Channel::com.drake.channel////PointingToDeclaration//-609647261">
          <div class="navigation-wrapper" id="navigation-wrapper">
            <div class="breadcrumbs"><a href="../../index.html">Channel</a>/<a href="index.html">com.drake.channel</a></div>
            <div class="pull-right d-flex">
              <div id="searchBar"></div>
            </div>
          </div>
          <div class="cover ">
            <h1 class="cover"><span>Package com.</span><wbr></wbr><span>drake.</span><wbr></wbr><span>channel</span></h1>
          </div>
          <div class="tabbedcontent">
            <div class="tabs-section" tabs-section="tabs-section"><button class="section-tab" data-active="" data-togglable="Functions">Functions</button></div>
            <div class="tabs-section-body">
              <h2 class="">Functions</h2>
              <div class="table" data-togglable="Functions"><a data-name="959244710%2FFunctions%2F-609647261" anchor-label="receiveEvent" id="959244710%2FFunctions%2F-609647261" data-filterable-set=":channel:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":channel:dokkaHtml/release" data-filterable-set=":channel:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="receive-event.html">receiveEvent</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="959244710%2FFunctions%2F-609647261"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":channel:dokkaHtml/release" data-filterable-set=":channel:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":channel:dokkaHtml/release"><div class="symbol monospace">inline fun &lt;<a href="receive-event.html">T</a>&gt; <a href="https://developer.android.com/reference/kotlin/androidx/lifecycle/LifecycleOwner.html">LifecycleOwner</a>.<a href="receive-event.html">receiveEvent</a>(vararg tags: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>? = emptyArray(), lifeEvent: <a href="https://developer.android.com/reference/kotlin/androidx/lifecycle/Lifecycle.Event.html">Lifecycle.Event</a> = Lifecycle.Event.ON_DESTROY, noinline block: suspend <span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span>.(<a href="receive-event.html">T</a>) -&gt; <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>): <span data-unresolved-link="kotlinx.coroutines/Job///PointingToDeclaration/">Job</span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
<a data-name="959244710%2FFunctions%2F-609647261" anchor-label="receiveEvent" id="959244710%2FFunctions%2F-609647261" data-filterable-set=":channel:dokkaHtml/release"></a><div class="brief "><a data-name="959244710%2FFunctions%2F-609647261" anchor-label="receiveEvent" id="959244710%2FFunctions%2F-609647261" data-filterable-set=":channel:dokkaHtml/release"></a>接收事件</div></div>
</div>
                    </div>
                  </div>
                </div>
<a data-name="1014861270%2FFunctions%2F-609647261" anchor-label="receiveEventHandler" id="1014861270%2FFunctions%2F-609647261" data-filterable-set=":channel:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":channel:dokkaHtml/release" data-filterable-set=":channel:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="receive-event-handler.html">receiveEventHandler</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1014861270%2FFunctions%2F-609647261"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":channel:dokkaHtml/release" data-filterable-set=":channel:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":channel:dokkaHtml/release"><div class="symbol monospace">inline fun &lt;<a href="receive-event-handler.html">T</a>&gt; <a href="receive-event-handler.html">receiveEventHandler</a>(vararg tags: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>? = arrayOf(), noinline block: suspend <span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span>.(<a href="receive-event-handler.html">T</a>) -&gt; <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>): <span data-unresolved-link="kotlinx.coroutines/Job///PointingToDeclaration/">Job</span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
<a data-name="1014861270%2FFunctions%2F-609647261" anchor-label="receiveEventHandler" id="1014861270%2FFunctions%2F-609647261" data-filterable-set=":channel:dokkaHtml/release"></a><div class="brief "><a data-name="1014861270%2FFunctions%2F-609647261" anchor-label="receiveEventHandler" id="1014861270%2FFunctions%2F-609647261" data-filterable-set=":channel:dokkaHtml/release"></a>接收事件, 此事件要求执行<span data-unresolved-link="kotlinx.coroutines//cancel/kotlin.coroutines.CoroutineContext#/PointingToDeclaration/">kotlinx.coroutines.cancel</span>手动注销</div></div>
</div>
                    </div>
                  </div>
                </div>
<a data-name="-1105007846%2FFunctions%2F-609647261" anchor-label="receiveEventLive" id="-1105007846%2FFunctions%2F-609647261" data-filterable-set=":channel:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":channel:dokkaHtml/release" data-filterable-set=":channel:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="receive-event-live.html">receiveEventLive</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1105007846%2FFunctions%2F-609647261"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":channel:dokkaHtml/release" data-filterable-set=":channel:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":channel:dokkaHtml/release"><div class="symbol monospace">inline fun &lt;<a href="receive-event-live.html">T</a>&gt; <a href="https://developer.android.com/reference/kotlin/androidx/lifecycle/LifecycleOwner.html">LifecycleOwner</a>.<a href="receive-event-live.html">receiveEventLive</a>(vararg tags: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>? = arrayOf(), lifeEvent: <a href="https://developer.android.com/reference/kotlin/androidx/lifecycle/Lifecycle.Event.html">Lifecycle.Event</a> = Lifecycle.Event.ON_DESTROY, noinline block: suspend <span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span>.(<a href="receive-event-live.html">T</a>) -&gt; <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>): <span data-unresolved-link="kotlinx.coroutines/Job///PointingToDeclaration/">Job</span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
<a data-name="-1105007846%2FFunctions%2F-609647261" anchor-label="receiveEventLive" id="-1105007846%2FFunctions%2F-609647261" data-filterable-set=":channel:dokkaHtml/release"></a><div class="brief "><a data-name="-1105007846%2FFunctions%2F-609647261" anchor-label="receiveEventLive" id="-1105007846%2FFunctions%2F-609647261" data-filterable-set=":channel:dokkaHtml/release"></a>使用LiveData将消息延迟到前台接收</div></div>
</div>
                    </div>
                  </div>
                </div>
<a data-name="-676427424%2FFunctions%2F-609647261" anchor-label="receiveTag" id="-676427424%2FFunctions%2F-609647261" data-filterable-set=":channel:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":channel:dokkaHtml/release" data-filterable-set=":channel:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="receive-tag.html">receiveTag</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-676427424%2FFunctions%2F-609647261"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":channel:dokkaHtml/release" data-filterable-set=":channel:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":channel:dokkaHtml/release"><div class="symbol monospace">fun <a href="https://developer.android.com/reference/kotlin/androidx/lifecycle/LifecycleOwner.html">LifecycleOwner</a>.<a href="receive-tag.html">receiveTag</a>(vararg tags: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>?, lifeEvent: <a href="https://developer.android.com/reference/kotlin/androidx/lifecycle/Lifecycle.Event.html">Lifecycle.Event</a> = Lifecycle.Event.ON_DESTROY, block: suspend <span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span>.(tag: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>) -&gt; <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>): <span data-unresolved-link="kotlinx.coroutines/Job///PointingToDeclaration/">Job</span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
<a data-name="-676427424%2FFunctions%2F-609647261" anchor-label="receiveTag" id="-676427424%2FFunctions%2F-609647261" data-filterable-set=":channel:dokkaHtml/release"></a><div class="brief "><a data-name="-676427424%2FFunctions%2F-609647261" anchor-label="receiveTag" id="-676427424%2FFunctions%2F-609647261" data-filterable-set=":channel:dokkaHtml/release"></a>接收标签, 和<a href="receive-event.html">receiveEvent</a>不同之处在于该函数仅支持标签, 不支持事件+标签</div></div>
</div>
                    </div>
                  </div>
                </div>
<a data-name="-1495892848%2FFunctions%2F-609647261" anchor-label="receiveTagHandler" id="-1495892848%2FFunctions%2F-609647261" data-filterable-set=":channel:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":channel:dokkaHtml/release" data-filterable-set=":channel:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="receive-tag-handler.html">receiveTagHandler</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1495892848%2FFunctions%2F-609647261"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":channel:dokkaHtml/release" data-filterable-set=":channel:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":channel:dokkaHtml/release"><div class="symbol monospace">fun <a href="receive-tag-handler.html">receiveTagHandler</a>(vararg tags: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>?, block: suspend <span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span>.(tag: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>) -&gt; <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>): <span data-unresolved-link="kotlinx.coroutines/Job///PointingToDeclaration/">Job</span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
<a data-name="-1495892848%2FFunctions%2F-609647261" anchor-label="receiveTagHandler" id="-1495892848%2FFunctions%2F-609647261" data-filterable-set=":channel:dokkaHtml/release"></a><div class="brief "><a data-name="-1495892848%2FFunctions%2F-609647261" anchor-label="receiveTagHandler" id="-1495892848%2FFunctions%2F-609647261" data-filterable-set=":channel:dokkaHtml/release"></a>接收标签, 和<a href="receive-event.html">receiveEvent</a>不同之处在于该函数仅支持标签, 不支持事件+标签, 此事件要求执行<span data-unresolved-link="kotlinx.coroutines//cancel/kotlin.coroutines.CoroutineContext#/PointingToDeclaration/">kotlinx.coroutines.cancel</span>手动注销</div></div>
</div>
                    </div>
                  </div>
                </div>
<a data-name="-25526316%2FFunctions%2F-609647261" anchor-label="receiveTagLive" id="-25526316%2FFunctions%2F-609647261" data-filterable-set=":channel:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":channel:dokkaHtml/release" data-filterable-set=":channel:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="receive-tag-live.html">receiveTagLive</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-25526316%2FFunctions%2F-609647261"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":channel:dokkaHtml/release" data-filterable-set=":channel:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":channel:dokkaHtml/release"><div class="symbol monospace">fun <a href="https://developer.android.com/reference/kotlin/androidx/lifecycle/LifecycleOwner.html">LifecycleOwner</a>.<a href="receive-tag-live.html">receiveTagLive</a>(vararg tags: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>?, lifeEvent: <a href="https://developer.android.com/reference/kotlin/androidx/lifecycle/Lifecycle.Event.html">Lifecycle.Event</a> = Lifecycle.Event.ON_DESTROY, block: suspend <span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span>.(tag: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>) -&gt; <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>): <span data-unresolved-link="kotlinx.coroutines/Job///PointingToDeclaration/">Job</span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
<a data-name="-25526316%2FFunctions%2F-609647261" anchor-label="receiveTagLive" id="-25526316%2FFunctions%2F-609647261" data-filterable-set=":channel:dokkaHtml/release"></a><div class="brief "><a data-name="-25526316%2FFunctions%2F-609647261" anchor-label="receiveTagLive" id="-25526316%2FFunctions%2F-609647261" data-filterable-set=":channel:dokkaHtml/release"></a>使用LiveData将消息延迟到前台接收</div></div>
</div>
                    </div>
                  </div>
                </div>
<a data-name="1246723453%2FFunctions%2F-609647261" anchor-label="sendEvent" id="1246723453%2FFunctions%2F-609647261" data-filterable-set=":channel:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":channel:dokkaHtml/release" data-filterable-set=":channel:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="send-event.html">sendEvent</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1246723453%2FFunctions%2F-609647261"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":channel:dokkaHtml/release" data-filterable-set=":channel:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":channel:dokkaHtml/release"><div class="symbol monospace">fun <a href="send-event.html">sendEvent</a>(event: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>, tag: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>? = null): <span data-unresolved-link="kotlinx.coroutines/Job///PointingToDeclaration/">Job</span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
<a data-name="1246723453%2FFunctions%2F-609647261" anchor-label="sendEvent" id="1246723453%2FFunctions%2F-609647261" data-filterable-set=":channel:dokkaHtml/release"></a><div class="brief "><a data-name="1246723453%2FFunctions%2F-609647261" anchor-label="sendEvent" id="1246723453%2FFunctions%2F-609647261" data-filterable-set=":channel:dokkaHtml/release"></a>发送事件</div></div>
</div>
                    </div>
                  </div>
                </div>
<a data-name="-48892769%2FFunctions%2F-609647261" anchor-label="sendTag" id="-48892769%2FFunctions%2F-609647261" data-filterable-set=":channel:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":channel:dokkaHtml/release" data-filterable-set=":channel:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="send-tag.html">sendTag</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-48892769%2FFunctions%2F-609647261"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":channel:dokkaHtml/release" data-filterable-set=":channel:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":channel:dokkaHtml/release"><div class="symbol monospace">fun <a href="send-tag.html">sendTag</a>(tag: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>?): <span data-unresolved-link="kotlinx.coroutines/Job///PointingToDeclaration/">Job</span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
<a data-name="-48892769%2FFunctions%2F-609647261" anchor-label="sendTag" id="-48892769%2FFunctions%2F-609647261" data-filterable-set=":channel:dokkaHtml/release"></a><div class="brief "><a data-name="-48892769%2FFunctions%2F-609647261" anchor-label="sendTag" id="-48892769%2FFunctions%2F-609647261" data-filterable-set=":channel:dokkaHtml/release"></a>发送标签</div></div>
</div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div class="footer"><span class="go-to-top-icon"><a href="#content"></a></span><span>© 2021 Copyright</span><span class="pull-right"><span>Generated by </span><a href="https://github.com/Kotlin/dokka"><span>dokka</span><span class="padded-icon"></span></a></span></div>
      </div>
    </div>
  </body>
</html>

